local defaliasflag=alias_flag.Enabled+alias_flag.RegularExpression+alias_flag.Replace
module("mcl",package.seeall)
path=GetInfo(67)

getfilenameinfo=function()
	if GetInfo(54)=="" then return end
	idre=rex.new("^.*?(?<dir>[^\\\\]*)\\\\(?<id>[^-\\\\\\.]+)(-(?<passwd>[^-\\\\]+?)){0,1}(\\.[^\\\\-]*){0,1}$")
	s,e,t=idre:match(GetInfo(54))
	if t~=nil then
		id=t.id
		pass=t.pass
		dir=t.dir
	end
	if dir~=nil then
		dirre=rex.new("^(?<mudname>.*)@(?<ip>.*)-(?<port>.*)$")
		s,e,t=dirre:match(dir)
		if t~=nil then
			mudname=t.mudname
		end
	end
	
end
addalias=function(name,cmd,tfunction,flag)
	if flag==nil then flag=defaliasflag end
	return(AddAlias(name,cmd,"",flag+alias_flag.Temporary,tfunction))
end


